package online.sanen.mhdt.entity.equip;

import online.sanen.mhdt.RandomeTool;
import online.sanen.mhdt.entity.attr.DEF;
import online.sanen.mhdt.entity.attr.HP;

/**
 * 腰带
 */
public abstract class Belt extends Equip{
    protected HP hp;
    protected DEF def;
    /**
     * 装备属性取值范围
     */
    protected int minHp;
    protected int maxHp;
    protected int minDef;
    protected int maxDef;
    @Override
    protected void initBaseAttr() {
        hp=new HP(RandomeTool.equipBaseAttr(minHp,maxHp));
        def=new DEF(RandomeTool.equipBaseAttr(minDef,maxDef));
    }

    public HP getHp() {
        return hp;
    }

    public void setHp(HP hp) {
        this.hp = hp;
    }

    public DEF getDef() {
        return def;
    }

    public void setDef(DEF def) {
        this.def = def;
    }

    public int getMinHp() {
        return minHp;
    }

    public void setMinHp(int minHp) {
        this.minHp = minHp;
    }

    public int getMaxHp() {
        return maxHp;
    }

    public void setMaxHp(int maxHp) {
        this.maxHp = maxHp;
    }

    public int getMinDef() {
        return minDef;
    }

    public void setMinDef(int minDef) {
        this.minDef = minDef;
    }

    public int getMaxDef() {
        return maxDef;
    }

    public void setMaxDef(int maxDef) {
        this.maxDef = maxDef;
    }
}
